import request from '@/utils/request.js'

export const getUserList = data => {
  return request({
    method: 'post',
    url: 'api/Member/PagingMember',
    data: data
  })
}

export const getUserDetail = data => {
  return request({
    method: 'post',
    url: 'api/Member/MemberInfo',
    data: data
  })
}

export const resetPassword = data => {
  return request({
    method: 'post',
    url: 'api/Member/ResetPassWord',
    data: data
  })
}
export const getAchievementList = data => {
  return request({
    method: 'post',
    url: 'api/Member/Achievement',
    data: data
  })
}

export const exportData = data => {
  return request({
    method: 'post',
    url: 'api/Member/Export',
    data: data
  })
}

export const enableMember = data => {
  return request({
    method: 'post',
    url: 'api/Member/Enable',
    data: data
  })
}

export const disableMember = data => {
  return request({
    method: 'post',
    url: 'api/Member/Disable',
    data: data
  })
}

export const exportCurrentPage = data => {
  return request({
    method: 'post',
    url: 'api/Member/PagingMember',
    data: data
  })
}

export const getVerification = data => {
  return request({
    method: 'post',
    url: 'api/Member/PagingVerification',
    data: data
  })
}

export const editUserInfo = data => {
  return request({
    method: 'post',
    url: 'api/Member/UdpateMember',
    data: data
  })
}
